/**
 * Copyright (c) 2007,中企动力华南研发中心<br>
 * All rights reserved.
 */
package com.ce.pms.charge.vo;
/**
 * 功能描述：<br>
 * @author 罗军林 创建日期：2008-10-13
 */
public class SubAccountBean {
	private Long subAccountId;
	private Long houseId;
	private String lockState;


	public SubAccountBean(Long houseId,Long subAccountId, String lockState) {
		super();
		this.subAccountId = subAccountId;
		this.houseId = houseId;
		this.lockState = lockState;
	}

	public SubAccountBean() {

	}
	public Long getHouseId() {
		return houseId;
	}
	public void setHouseId(Long houseId) {
		this.houseId = houseId;
	}

	public void setLockState(String lockState) {
		this.lockState = lockState;
	}
	public Long getSubAccountId() {
		return subAccountId;
	}
	public void setSubAccountId(Long subAccountId) {
		this.subAccountId = subAccountId;
	}
	/**
	 * 功能描述:返回帐户借方是否锁定.锁定返回true<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-10-14<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public boolean isLockedDebit(){
		return lockState.charAt(0)=='1';
	}

	/**
	 * 功能描述:返回帐户贷方是否锁定.锁定返回true<br>
	 * @return<br>
	 * Create author:罗军林<br>
	 * Create on:2008-10-14<br>
	 * Edit author:<br>
	 * Edit on:<br>
	 * Why:<br>
	 */
	public boolean isLockedCredit(){
		return lockState.charAt(1)=='1';
	}

}
